﻿#ifndef MANAGEMENTSTUDENT_H
#define MANAGEMENTSTUDENT_H
#include "management.h"
#include "infocourse.h"
class studentManagement:public management
{
public:
    studentManagement();
    //接口

    //选课
    virtual bool selectCourse(QString courseSelectId,QString courseName,QString courseTime)=0;
    //退课
    virtual bool giveUpCourse(QString courseSelectId)=0;
    //查看所有课程
    virtual void checkAllCourse(QStandardItemModel *model)=0;
    //查看个人课程
    virtual void checkMyCourse(QStandardItemModel *model)=0;
    //查看个人信息
    virtual void checkMyInfo(QStandardItemModel *model,int curRow) const=0;
    //根据id匹配课程
    virtual courseInfo& matchCourseWithId(const QString courseSelectId,QVector<courseInfo> &course)=0;
    //添加课程选课代码到学生信息中
    virtual void addCourse(QString id)=0;
    //移除学生信息中的选课代码
    virtual void removeCourse(QString id)=0;
    //保存当前的信息到文件中
    virtual void saveAllInfo()=0;


};

#endif // MANAGEMENTSTUDENT_H
